<?php

function fnInsertMsg($NoHp, $Msg, $Sender) {
    $results = mysql_query("INSERT INTO outbox (DestinationNumber, TextDecoded, CreatorID) 
                            VALUES ('$NoHp', '$Msg', '$Sender') ");
    return $results;
}

function fnMyOutbox($NoHp, $Msg, $Sender, $KodeSms, $AlasanSms, $Pagekode) {
    $results = mysql_query("INSERT INTO mst_sms_outbox (tgl_kirim, no_tujuan, isi_pesan, pengirim, kode_sms, alasan_sms, kode_pengirim) 
                            VALUES (curdate(), '$NoHp', '$Msg', '$Sender', $KodeSms, $AlasanSms, $Pagekode) ");
    return $results;
}

?>
